package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.ProductPotionDto;
import com.leadingsoft.pwxk.model.ProductPotion;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class ProductPotionConverter extends AbstractConverter<ProductPotion, ProductPotionDto> {

	@Override
	protected ProductPotionDto toDtoActual(ProductPotion model) {

		ProductPotionDto dto = new ProductPotionDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setDevicename(model.getDevicename());
		dto.setFuelname(model.getFuelname());
		dto.setIssecretname(model.getIssecretname());
		dto.setUnitsname(model.getUnitsname());
		dto.setYearamount(model.getYearamount());

		return dto;
	}

	@Override
	public void copyProperties(ProductPotion model, ProductPotionDto dto) {

	}

}
